package com.menggudf.convert;

import org.springframework.stereotype.Component;

import com.menggudf.entity.PartsCoordinate;
import com.menggudf.model.PartsCoordinateModel;

@Component
public class PartsCoordinateConvert {
    
    public PartsCoordinateModel entity2PartsCoordinateModelConvert(PartsCoordinate p){
        PartsCoordinateModel pModel = new PartsCoordinateModel();
        pModel.setAuthor(p.getAuthor());
        pModel.setCoordinate_X(p.getCoordinate_X());
        pModel.setCoordinate_Y(p.getCoordinate_Y());
        pModel.setCreateTime(p.getCreateTime());
        pModel.setParts(p.getParts());
        pModel.setProsAndCons(p.getProsAndCons());
        pModel.setSexflag(p.getSexflag());
        return pModel;
        
    }

}
